package pers.linkong.asr.util;

    /**
    * @ClassName: ResultInfo
    * @Description: TODO(封装返回代码与文字信息)
    * @author 独木林空
    * @date 2018年8月7日
    *
    */
    
public class ResultInfo {
	private Integer code;
	private String msg;
	private Object bean;
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Object getBean() {
		return bean;
	}
	public void setBean(Object bean) {
		this.bean = bean;
	}
	public static ResultInfo data(Integer code, String msg){
		ResultInfo resultInfo = new ResultInfo();
		resultInfo.setCode(code);
		resultInfo.setMsg(msg);
		return resultInfo;
	}
	public static ResultInfo data(Integer code, String msg, Object bean){
		ResultInfo resultInfo = new ResultInfo();
		resultInfo.setCode(code);
		resultInfo.setMsg(msg);
		resultInfo.setBean(bean);
		return resultInfo;
	}
}
